//登陆模块
import { request } from '../util/request.js';

const ROOT = 'http://localhost:8081/api/student/';

export function login(data) { // 密码登陆
    return request( ROOT+'passwordLogin', data, 'post')
}

export function register(data) { // 注册账号
    return request( ROOT+'register', data, 'post')
}

export function changePassword(data) { // 修改密码
    return request( ROOT+'changePassword', data, 'post')
}